package uk.ac.lkl.lpp.ui;

import java.awt.Color;
import java.awt.Panel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.FocusAdapter;
import java.awt.event.FocusEvent;
import java.util.logging.Logger;
import javax.swing.JPanel;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JTextField;
/*
 * This is the menu on the properties panel from which the user choose the definition of the plan
 * "This is a new [MODULE/SESSION] consisting of <NUMBER> of [WEEKS/DAYS/HOURS]"
 * Uri
 */

import uk.ac.lkl.common.util.Property;
import uk.ac.lkl.lpp.PedagogyPlan;


public class NewPlanPanel extends JPanel {
	private static Logger logger = Logger.getLogger("ac.uk.lkl");
	NewPlanPanel(PedagogyPlan plan){
		
		//A [Module/Session]
		this.add(new JLabel("A "));
		JComboBox planTypeCB = new JComboBox(Messages.getLabel("new-plan.type").split(";"));
		planTypeCB.addActionListener(new ActionListener(){

			public void actionPerformed(ActionEvent arg0) {
				// TODO Auto-generated method stub
			}
			
		});
		this.add(planTypeCB);
		//of <N> 
		this.add(new JLabel(" of "));
		JTextField numberOfHoursTF = new JTextField();
		numberOfHoursTF.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent arg0) {
				// TODO Auto-generated method stub
				
			}
		});
		//[Hours/Weeks/Periods]
		JComboBox periodsCB = new JComboBox(Messages.getLabel("new-plan.period").split(";"));
		periodsCB.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent arg0) {
				// TODO Auto-generated method stub
				
			}
		});
		//Consisting of
		this.add(new JLabel(" Consisting of "));
		//<N>
		JTextField numOfSessions = new JTextField();
		numOfSessions.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent arg0) {
				// TODO Auto-generated method stub	
			}
		});
		this.add(numOfSessions);
				
		
	}
	
}
